<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>响应式图像</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="../../js/lib/bootstrap/dist/css/bootstrap.min.css">
  <style>
    .img-container {
    	width: 300px;
    	margin: auto;
    }
  </style>
</head>
<body>
	<div class="container">
    <h1>响应式图像</h1>
    <pre>
      .img-responsive {
        display: inline-block;
        max-with: 100%;
        height: auto;
      }
      图像按比例缩放，不超过其父元素的尺寸
     </pre>
    <div class="img-container">
    	<img class="img-responsive" src="../../img/batman.jpg" alt="">
    </div>
  </div>
  <script src="../../js/lib/jquery/dist/jquery.min.js"></script>
  <script src="../../js/lib/bootstrap/dist/js/bootstrap.min.js"></script>
</body>
</html>